package com.example.shiro.role.service.impl;

import com.example.shiro.role.entity.Role;
import com.example.shiro.role.dao.RoleDao;
import com.example.shiro.role.service.RoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.shiro.user.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author linyb
 * @since 2021-02-10
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleDao, Role> implements RoleService {

    @Autowired
    private RoleDao roleDao;

    @Override
    public List<Role> findRoleByUser(User user) {
        return roleDao.findRoleByUser(user);
    }
}
